<?php
class Back_Model_Pages extends Jnd_Model_Abstract {
	
	protected $id = 0;
	protected $titre = "";
	protected $contenu = "";
	protected $menu = 0;
	protected $creationDate;
	protected $creationUtilisateur;
	protected $modificationUtilisateur;
	protected $modificationDate;
	
	
	/**
	 *
	 * @see Jnd_Model_Abstract::getId()
	 */
	public function getId() {
		return $this->id;
	}
	
	/**
	 *
	 * @see Jnd_Model_Abstract::setId()
	 */
	public function setId($id) {
		$this->id = $id;
	}
	
	public static function recuperationPagesDansMenu() {
	    $mapper = new Back_Model_Mapper_Pages();
	    $datas = $mapper->recuperationPagesDansMenu();
	    $pages = array();
	    foreach( $datas as $id) {
	        $page = new self();
	        $page->charger($id);
	        $pages[] = $page;
	    }
	    
	    return $pages;
	}
}
